package com.itheima.StringBuilder;

public class DemoStringBuilder {
    public static void main(String[] args) {
        StringBuilder sb=new StringBuilder();
        sb.append("张三").append("李四").append("王五");
        System.out.println(sb);


        sb.reverse();
        System.out.println(sb);

        int length = sb.length();
        System.out.println(length);

        String string = sb.toString();
        System.out.println(string);
    }
}
